import request from './request.js'

// 删除题库
export function removeQuestion (data) {
  return request({
    url: '/question/remove',
    method: 'post',
    data
  })
}

// 题库编辑
export function editQuestion (data) {
  return request({
    url: '/question/edit',
    method: 'post',
    data
  })
}

// 修改题库状态
export function statusQuestion (data) {
  return request({
    url: '/question/status',
    method: 'post',
    data
  })
}

// 新增题库
export function addQuestion (data) {
  return request({
    url: '/question/add',
    method: 'post',
    data
  })
}

// 获取题库列表
export function questionList (params) {
  return request({
    url: '/question/list',
    method: 'get',
    params
  })
}

// 获得单个题库详细
export function getOenQuestion (data) {
  return request({
    url: '/question/one',
    method: 'post',
    data
  })
}
// 上传题库文件
export function uploadQuestion (data) {
  return request({
    url: '/question/upload',
    method: 'post',
    data
  })
}
